﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="tb_Payment.aspx.cs" Inherits="MyWeb.Admins.tb_Payment" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title">Manage Payment</div>
    <asp:Panel ID="pnShow" runat="server" Width="100%">
        <table id="Table1" style="border-collapse: collapse; background-color: #D0DEF0;" cellpadding="0" width="100%" border="0">
            <tr>
                <td class="name_fild_row">Select:&nbsp;<asp:DropDownList ID="dllServiceId" runat="server" Width="200px"></asp:DropDownList><asp:Button ID="btnshow" runat="server" Text="Search" OnClick="btnshow_Click"></asp:Button>
                </td>
            </tr>
            <tr class="name_fild_row">
                <td>From Date
                    <asp:TextBox ID="txtFrom" runat="server"></asp:TextBox><asp:CalendarExtender ID="cldExFrom" runat="server" TargetControlID="txtFrom"></asp:CalendarExtender>
                    To Date <asp:TextBox ID="txtTo" runat="server"></asp:TextBox><asp:CalendarExtender ID="cldToEx" runat="server" TargetControlID="txtTo"></asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <asp:DataGrid ID="grdtb_Payment" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="100%" OnPageIndexChanged="grdtb_Payment_PageIndexChanged" PageSize="10" OnItemCommand="grdtb_Payment_ItemCommand" OnItemDataBound="grdtb_Payment_ItemDataBound">
            <AlternatingItemStyle BackColor="White" />
            <HeaderStyle CssClass="trHeader"></HeaderStyle>
            <Columns>
                <asp:TemplateColumn ItemStyle-CssClass="tdCenter">
                    <HeaderTemplate>
                        <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="False"></asp:CheckBox></HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox></ItemTemplate>
                    <ItemStyle CssClass="tdCenter"></ItemStyle>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="Id" HeaderText="Id"></asp:BoundColumn>
                <asp:BoundColumn DataField="UserId" HeaderText="UserId"></asp:BoundColumn>
                <asp:BoundColumn DataField="ServiceId" HeaderText="ServiceId"></asp:BoundColumn>
                <asp:BoundColumn DataField="DateTime" HeaderText="DateTime"></asp:BoundColumn>
                <asp:BoundColumn DataField="Amount" HeaderText="Amount"></asp:BoundColumn>
                <asp:BoundColumn DataField="Phone" HeaderText="Phone"></asp:BoundColumn>
                <asp:BoundColumn DataField="Status" HeaderText="Status"></asp:BoundColumn>
                
            </Columns>
            <EditItemStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <ItemStyle BackColor="#EFF3FB" />
            <PagerStyle BackColor="#F3F8FE" ForeColor="Blue" HorizontalAlign="Center" Mode="NumericPages" />
            <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:DataGrid>
    </asp:Panel>
    <asp:Panel ID="pnUpdate" runat="server" Visible="False" Width="100%">
        <table id="Table2" style="border-collapse: collapse" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="150" height="10"></td>
                <td height="10"></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;</td>
                <td>
                    <asp:TextBox ID="txtId" runat="server" Width="200px" Visible="False"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblUserId" runat="server">UserId</asp:Label></td>
                <td>
                    <asp:TextBox ID="txtUserId" runat="server" Width="200px" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblServiceId" runat="server">ServiceId</asp:Label></td>
                <td>
                    <asp:DropDownList ID="dllServiceId_Update" runat="server" Width="200px"></asp:DropDownList></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblDateTime" runat="server">DateTime</asp:Label></td>
                <td>
                    <asp:TextBox ID="txtDateTime" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblAmount" runat="server">Amount</asp:Label></td>
                <td>
                    <asp:TextBox ID="txtAmount" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblPhone" runat="server">Phone</asp:Label></td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">&nbsp;<asp:Label ID="lblStatus" runat="server">Status</asp:Label></td>
                <td>
                    <asp:CheckBox ID="ckbStatus" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="150">&nbsp;</td>
                <td>&nbsp;<asp:LinkButton ID="lbtUpdate" CssClass="update" runat="server" OnClick="lblUpdate_Click">Update</asp:LinkButton>&nbsp;&nbsp;<asp:LinkButton ID="lblBack" runat="server" CssClass="back" OnClick="lblBack_Click">Back</asp:LinkButton></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
